package tut.collection.code;

import java.util.ArrayList;
import java.util.List;

public class IterableTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		List li = new ArrayList();
		li.add(new String("one"));
		li.add(new String("two"));
		li.add(new String("three"));

		for (Object o : li) {
			String s = (String) o;
			System.out.println(s);
		}

		System.out.println("----------------------");
		List<String> li2 = new ArrayList<String>();
		li2.add(new String("one"));
		li2.add(new String("two"));
		li2.add(new String("three"));

		for (String s2 : li2) {
			System.out.println(s2);
		}
	}
}
